FROM rails6_base:latest

ENV RAILS_ROOT /rails

WORKDIR $RAILS_ROOT

COPY . .

COPY entrypoint.sh /usr/bin/
RUN chmod +x /usr/bin/entrypoint.sh
ENTRYPOINT ["entrypoint.sh"]
EXPOSE 3000
